Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dog_breeds example #300

Merged
merged 1 commit into from
Oct 23, 2024
Merged

feat: dog_breeds example #300

merged 1 commit into from
Oct 23, 2024

Conversation

henrymai
Copy link
Contributor

Rationale for this change

Add an additional dog_breeds example to help improve documentation.

What changes are included in this PR?

dog_breeds example is added.

Are these changes tested?

Yes.

Parsing the query: SELECT COUNT(*) AS total_breeds FROM breeds...
Done in 0.375095 ms.
Generating proof...Done in 37.559131 ms.
Verifying proof...Verified in 12.053492 ms.
Query Result:
Ok(OwnedTable { table: {Identifier { name: "total_breeds" }: BigInt([25])} })
Parsing the query: SELECT Name FROM breeds WHERE Size = 'Large'...
Done in 0.639886 ms.
Generating proof...Done in 71.741361 ms.
Verifying proof...Verified in 28.358727000000002 ms.
Query Result:
Ok(OwnedTable { table: {Identifier { name: "name" }: VarChar(["Labrador Retriever", "German Shepherd", "Bernese Mountain Dog", "Rottweiler", "Golden Retriever", "Great Dane", "Akita", "Doberman Pinscher", "Irish Setter", "Alaskan Malamute"])} })
Parsing the query: SELECT Origin, COUNT(*) AS breed_count FROM breeds GROUP BY Origin ORDER BY breed_count DESC LIMIT 5...
Done in 0.9029809999999999 ms.
Generating proof...Done in 71.238557 ms.
Verifying proof...Verified in 27.918471 ms.
Query Result:
Ok(OwnedTable { table: {Identifier { name: "origin" }: VarChar(["Germany", "United Kingdom", "China", "Japan", "United States"]), Identifier { name: "breed_count" }: BigInt([6, 6, 2, 2, 2])} })

Copy link
Contributor

@JayWhite2357 JayWhite2357 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the example!

@henrymai henrymai merged commit 251e182 into main Oct 23, 2024
11 checks passed
@henrymai henrymai deleted the feat/dog-breeds-example branch October 23, 2024 04:51
Copy link

🎉 This PR is included in version 0.33.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants